package com.telit.android.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class GisPointDto {

    private Geometry geometry;

    private Attributes attributes;

    public void applyGeometry(String x, String y) {
        geometry = new Geometry(x, y);
    }

    @Data
    @AllArgsConstructor
    public static class Geometry {

        private String x;

        private String y;
    }

    @Data
    public static class Attributes {

        private Long objectid;

        // 人员类型 1 护林员 2 林长
        private String type;

        // 人员状态 1 在线 0 离线
        private Integer state;

        private String userid;
    }


}
